import request from '@/utils/request'

export function getcommoditylist(data) {
  return request({
    url: '/v1/maintain/commoditylist?current=' + data.current + '&size=' + data.size + '&sid=' + data.sid,
    method: 'GET'
  })
}
export function newgetcommoditylist1(data) {
  return request({
    url: '/v1/maintain/commoditylist',
    method: 'GET'
  })
}
export function newgetcommoditylist2(data) {
  return request({
    url: '/v1/maintain/commoditylist?sid=' + data,
    method: 'GET'
  })
}
export function newgetcommoditylist3(data) {
  return request({
    url: '/v1/maintain/commoditylist?neid=' + data,
    method: 'GET'
  })
}

export function getcommoditylist1(data) {
  return request({
    url: '/v1/maintain/commoditylist?current=' + data.current + '&size=' + data.size + data.url + '&neid=' + data.neid,
    method: 'GET'
  })
}

export function getcommoditylist2(data) {
  return request({
    url: '/v1/maintain/commoditylist?current=' + data.current + '&size=' + data.size,
    method: 'GET'
  })
}
export function checkMessage(data) {
  return request({
    url: '/v1/membervip/checkMessage?nmId=' + data.nmId,
    method: 'GET'
  })
}
export function getVipMessage1(data) {
  return request({
    url: '/v1/membervip/getVipMessage?nmId=' + data.nmId,
    method: 'GET'
  })
}
export function getCountCommidity(data) {
  return request({
    url: '/v1/maintain/commoditylistcount?size=' + data.size + '&sid=' + data.sid,
    method: 'GET'
  })
}
export function getCountCommidity1(data) {
  return request({
    url: '/v1/maintain/commoditylistcount?size=' + data.size + data.url + '&neid=' + data.neid,
    method: 'GET'
  })
}
export function addOrderShop(data) {
  return request({
    url: '/v1/newshoporder',
    method: 'POST',
    data: data
  })
}
export function getCommodity(data) {
  return request({
    url: '/v1/maintain/getCommodity?id=' + data,
    method: 'GET'
  })
}
export function getVipMessage(data) {
  return request({
    url: '/v1/maintain/commoditylist?current=' + data.current + '&size=' + data.size + data.url + '&neid=' + data.neid,
    method: 'GET'
  })
}
